import request from '@/utils/request'

export function getList(params) {
  return request({
    url: `/aCat`,
    method: 'get',
    params,
  })
}

export function getOne(id, params) {
  return request({
    url: `/aCat/${id}`,
    method: 'get',
    params,
  })
}

export function doAdd(data) {
  return request({
    url: `/aCat`,
    method: 'post',
    data,
  })
}

export function doEdit(id, data) {
  return request({
    url: `/aCat/${id}`,
    method: 'put',
    data,
  })
}

export function doDelete(id) {
  return request({
    url: `/aCat/${id}`,
    method: 'delete',
  })
}

export function doMultiDelete(ids) {
  return request({
    url: `/aCat/multidelete`,
    method: 'delete',
    data: { ids },
  })
}
